package com.ruoyi.db.ums.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 意见反馈对象 ums_feedback
 *
 * @author ruoyi
 * @date 2020-04-22
 */

@ApiModel("意见反馈实体类")
@Data
@EqualsAndHashCode(callSuper=true)
public class UmsFeedback extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("意见反馈ID")
    private Long id;

    @ApiModelProperty("用户表的用户ID")
    @Excel(name = "用户表的用户ID")
    @NotBlank(message = "用户表的用户ID不能为空")
    private Long userId;

    @ApiModelProperty("用户名称")
    @Excel(name = "用户名称")
    @NotBlank(message = "用户名称不能为空")
    @Size(min = 0, max = 63, message = "用户名称长度不能超过63个字符")
    private String username;

    @ApiModelProperty("手机号")
    @Excel(name = "手机号")
    @NotBlank(message = "手机号不能为空")
    @Size(min = 0, max = 20, message = "手机号长度不能超过20个字符")
    private String mobile;

    @ApiModelProperty("反馈类型")
    @Excel(name = "反馈类型")
    @NotBlank(message = "反馈类型不能为空")
    @Size(min = 0, max = 63, message = "反馈类型长度不能超过63个字符")
    private String feedType;

    @ApiModelProperty("反馈内容")
    @Excel(name = "反馈内容")
    @NotBlank(message = "反馈内容不能为空")
    @Size(min = 0, max = 1023, message = "反馈内容长度不能超过1023个字符")
    private String content;

    @ApiModelProperty("状态")
    @Excel(name = "状态")
    @NotBlank(message = "状态不能为空")
    private Integer status;

    @ApiModelProperty("是否含有图片")
    @Excel(name = "是否含有图片")
    private Boolean hasPicture;

    @ApiModelProperty("图片地址列表")
    @Excel(name = "图片地址列表")
    @Size(min = 0, max = 1023, message = "图片地址列表长度不能超过1023个字符")
    private String picUrls;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime addTime;

    @ApiModelProperty("逻辑删除")
    @Excel(name = "逻辑删除")
    private Integer deleted;

}
